package com.xzs.demo.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.xzs.demo.entity.UserDao;

@Mapper
public interface UserDaoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(UserDao record);

    int insertSelective(UserDao record);

    UserDao selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(UserDao record);

    int updateByPrimaryKey(UserDao record);
    UserDao selectByNameAndPwd(@Param("phone")String phone,@Param("userpwd")String userpwd);
    
    List<UserDao> selectAll();
}